import {post,postcontent,get} from "../api";

//人员进出统计echars折线图
export const userinandout  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/userinandout',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 
  //公司人员分布统计（左侧柱状图）
export const companyuser  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/companyuser',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 
//公司人员分布统计（饼状图）
export const offiandtempuser  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/companyoffiandtempuser',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 
//公司人员分布统计(new柱状图)
export const userinandoutbyhour  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/userinandoutbyhour',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 
//公司列表作用筛选(饼状图)
export const companylist  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/companylist',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 
//园区各单位车辆管理
export const companycarinoroutbar  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/companycarinoroutbar',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 
  //园区车辆分类管理
export const carstatsbytype  =(params)=>new Promise((resolve,reject)=>{
 
  post('/mpsh/client/screen/carstatsbytype',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  }) 

//各单位入园车辆榜单 
export const companycarinoroutlist  =(params)=>new Promise((resolve,reject)=>{
  post('/mpsh/client/screen/companycarinoroutlist',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  })
//实时人员进出数据墙 
export const userinandoutlist  =(params)=>new Promise((resolve,reject)=>{
  post('/mpsh/client/screen/userinandoutlist',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  })
//访问企业人员管理 
export const visituserlist  =(params)=>new Promise((resolve,reject)=>{
  post('/mpsh/client/screen/visituserlist',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  })
//流入人员构成 
export const visituserbyarea  =(params)=>new Promise((resolve,reject)=>{
  post('/mpsh/client/screen/visituserbyarea',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  })
//流入人员构成 企业
export const visituserbycompany  =(params)=>new Promise((resolve,reject)=>{
  post('/mpsh/client/screen/visituserbycompany',  params).then(res=>{
      resolve(res.data)
    }).catch(err=>{
      reject(err.data)
    })
  })
